//
//  IAPHelper.h
//  Hangman
//
//  Created by  Stefan Nestorov on 9/27/14.
//  Copyright (c) 2014 Ray Wenderlich. All rights reserved.
//

#import <Foundation/Foundation.h>
@class IAPProduct;

typedef void (^RequestProductsCompletionHandler) (BOOL success, NSArray * products);


@interface IAPHelper : NSObject

@property (nonatomic, strong) NSMutableDictionary *products;

- (id)initWithProducts:(NSMutableDictionary *)products;
- (void)requestProductsWithCompletionHandler:(RequestProductsCompletionHandler)completionHandler;
- (void)buyProduct:(IAPProduct *)product;
- (void)restoreCompletedTransactions;

// Custom Methods
- (IAPProduct *)getEnergyProduct;
- (NSArray *)getStoreProducts;


@end
